package com.eshipenet.shipnet.dp_unpacker

import scala.util.Try

object Unpacker {

  def unpack(packet: EdgeChannelDataPacket): Try[Seq[EdgeChannelData]] = Try {
    packet.data.map { d =>
      d.copy(id = s"EdgeBox.${packet.id}.${d.id}")
    }
  }

}
